package com.gitee.wsl.lifecycle.nav.ext

import com.gitee.wsl.lifecycle.nav.Navigator

/**
 * A convenience method for [com.gitee.wsl.data.page.PagesNavigator.navigate].
 */
fun <C > Navigator<C>.navigate(transformer: (C) -> C) {
    navigate(transformer = transformer, onComplete = { _, _ -> })
}